-- GENERATED SPELL FOR [Captain Bo'kar] --


function spell0_20442(pUnit, Event) --@Furious Rage,Self--
pUnit:FullCastSpellOnTarget(35491,pUnit)
pUnit:RegisterEvent('Sorts_20442', 6299, 1)
end

function Sorts_20442(pUnit, Event)
local choix_sorts_20442 = math.random(0, 0)
if choix_sorts_20442 == 0 then
pUnit:RegisterEvent('spell0_20442', 1, 1)
end
end

function mob20442_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20442', math.random(1500, 3000), 1)
end

function mob20442_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20442_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20442_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20442, 1, 'mob20442_Action')
RegisterUnitEvent(20442, 2, 'mob20442_Leave')
RegisterUnitEvent(20442, 3, 'mob20442_Kill')
RegisterUnitEvent(20442, 4, 'mob20442_Die')
